import request from '@/utils/request'

// 商品详情页请求
export const getList = (id) => {
  return request.get(`/goods/detail&goodsId=${id}`)
}

// 获取商品评论           商品id，评论数目
export const getRows = (goodsId, limit) => {
  return request.get(`/comment/listRows&goodsId=${goodsId}&limit=${limit}`)
}

// 获取商品总数量
export const getRowsTotal = (goodsId) => {
  return request.get(`/comment/total&goodsId=${goodsId}`)
}
